package club.beimeng.msmservice.email.entity;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@Component
@ConfigurationProperties(prefix = "club.beimeng.email")
public class Accounts{

//    @Value("${club.beimeng.email.accounts}")
    public List<Account> accounts ;

    @Data
    public static class Account{
        private String emailNumber;

        private String emailPassword;
    }

}
/*
 *
 * @author Mr.Bao
 * @date 2021/8/2 20:23
 */